<?php
namespace app\index\controller;

use think\Controller;
use think\facade\Cookie;

/**
 * Created by liuyang.
 * Class Index
 * @package app\index\controller
 */
class Index extends Controller
{

    public function index(){
        $this->redirect(url('index/oauth',$_REQUEST));
    }

    /**
     * Created by liuyang.
     * Oauth认证
     */
     public function oauth($personId = 0){
        echo $personId;

        //todo
         // 调用公众平台接口授权accesstoken
         // 验证是否教师用户
         // 获取所有年级
         // mlt()组装url
         // ...
     }



}
